package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_message;

import cn.com.api.mapper.ApiT_messageMapper;

import cn.com.api.service.ApiT_messageService;

/**
 * 
 **/
@Service
public class T_messageServiceImplBase {
	@Autowired
	private ApiT_messageMapper apiT_messageMapper;
    
    // 根据id获取
	public ApiT_message findT_messageById(Integer id){
		ApiT_message t_message = apiT_messageMapper.findT_messageById( id );
		return t_message;
	}
    
    //查看数据集
	public List<ApiT_message> findT_messages(){
        List<ApiT_message> t_messages = apiT_messageMapper.findT_messages();
		return t_messages;
    }
    
	// 添加
	public int insertT_message(ApiT_message t_message){
		int ret_I= apiT_messageMapper.insertT_message(t_message);
		return ret_I;
	}

	// 修改
	public int updateT_message(ApiT_message t_message){
		int ret_I= apiT_messageMapper.updateT_message(t_message);
		return ret_I;
	}
	
    // 删除
	public int deleteT_message(Integer id){
		int ret_I= apiT_messageMapper.deleteT_message( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


